package ${packageName};

import java.io.Serializable;
<#if hasDateType??>
import java.util.Date;
</#if>


/**
*  ${tableComment}
*  @Author ${author}
*  @Email ${email}
*  @Date ${date?string("yyyy-MM-dd HH:mm:ss")}
*/


public class ${className} implements Serializable{

    <#list attrs as attr>
    private ${attr.type} ${attr.name}; // ${attr.comment}
    </#list>

    public ${className}(){}

    public ${className}(<#list attrs as attr>${attr.type} ${attr.name} <#if attr_index < attrs?size -1 >,</#if></#list>){
        <#list attrs as attr>
        this.${attr.name}=${attr.name};
        </#list>
    }

    <#list attrs as attr>
    public void set${attr.name?cap_first}(${attr.type} ${attr.name}){
        this.${attr.name} = ${attr.name};
    }
    public ${attr.type} get${attr.name?cap_first}(){
        return this.${attr.name};
    }
    </#list>
    @Override
    public String toString() {
        return "${className}{" +<#list attrs as attr>"<#if attr_index !=0 >,</#if>${attr.name}="+${attr.name}+</#list>"}";
    }
}